package com.ace.user.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ace.user.module.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户定义表 Mapper 接口
 * </p>
 *
 * @author jobObj
 * @since 2019-10-11
 */
public interface UserUserMapper extends BaseMapper<User> {
    List<Map<String,Object>> selectWebByAppId(@Param( "appId" )String appId,@Param( "userId" ) String userId);

    List<Map<String,Object>> selectAppByAppId(@Param( "appId" )String appId,@Param( "userId" ) String userId);

    Map<String,Object> selectUser(@Param( "appId" )String appId,@Param( "userName" ) String userName);

    @Select("select distinct app_id as appId from user_user")
    List<String> selectAllAppId();
}
